
import websdk from "../sdk/connection";

var window = {};
let WebIM = window.WebIM = websdk;
window.WebIM.config = {
    apiURL: "https://a1.easemob.com",
    appkey: "1172170225178860#ygxyapp"
};

WebIM.conn = new WebIM.connection({
    isMultiLoginSessions: false, //是否可以登录多个网页，并在所有网页上接收消息
    https: true, //是否使用HTTPS
    url: 'wss://im-api.easemob.com/ws/', //XMPP server
    apiUrl: 'https://a1.easemob.com',
    isAutoLogin: true, //自动登录
    heartBeatWait: 4500, //心跳间隔
    autoReconnectNumMax: 2, //自动重连次数
    autoReconnectInterval: 2, //每个重新连接之间的间隔秒, 自动重连次数大于1时有效。
});


module.exports = {
	"default": WebIM
};
